
import React, { Component, Suspense, lazy } from 'react';
import { withRouter, NavLink, Switch, Redirect, Route } from 'react-router-dom';

const Home = lazy(() => import('./views/Home'));
// import TopDemo from './views/demo/TopDemo'
// import Index from './views/Index'

function App() {
  return (
    <Suspense fallback={<div>Loading...</div>}>
      <Switch>
        <Route exact path="/" component={Home} />
        {/* <Route component={Index} path='/' exact />
        <Route component={TopDemo} path='/top-demo' exact /> */}
      </Switch>
    </Suspense>

  );
}

export default App;
